using Xunit;

namespace SmartSite.Frame.Test
{
    public class TestBaseFrameExtention
    {
        [Fact]
        void TestCalculationCRC()
        {
            byte[] buffer = new byte[] { 0, 1, 2, 3, 4, 0xFF, 0xFE, 0xFD, 0xFC, 0xFE };

            Assert.Equal(18106, buffer.CalculationCRC(0, buffer.Length));
        }
    }
}
